package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 运行日志对象 sys_work_log
 * 
 * @author ruoyi
 * @date 2023-02-02
 */
public class SysWorkLog extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    private Long logId;

    /** 日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date date;

    /** 班次(0 白班 1夜班) */
    @Excel(name = "班次(0 白班 1夜班)")
    private Long type;

    /** 交班时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "交班时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date shiftTime;

    /** 接班时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "接班时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date takeTime;

    /** 负责人 */
    @Excel(name = "负责人")
    private String logUser;

    /** 状态(0 未交班 1 已交班 2已接班) */
    @Excel(name = "状态(0 未交班 1 已交班 2已接班)")
    private Long status;

    public void setLogId(Long logId) 
    {
        this.logId = logId;
    }

    public Long getLogId() 
    {
        return logId;
    }
    public void setDate(Date date) 
    {
        this.date = date;
    }

    public Date getDate() 
    {
        return date;
    }
    public void setType(Long type) 
    {
        this.type = type;
    }

    public Long getType() 
    {
        return type;
    }
    public void setShiftTime(Date shiftTime) 
    {
        this.shiftTime = shiftTime;
    }

    public Date getShiftTime() 
    {
        return shiftTime;
    }
    public void setTakeTime(Date takeTime) 
    {
        this.takeTime = takeTime;
    }

    public Date getTakeTime() 
    {
        return takeTime;
    }
    public void setLogUser(String logUser) 
    {
        this.logUser = logUser;
    }

    public String getLogUser() 
    {
        return logUser;
    }
    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("logId", getLogId())
            .append("date", getDate())
            .append("type", getType())
            .append("shiftTime", getShiftTime())
            .append("takeTime", getTakeTime())
            .append("logUser", getLogUser())
            .append("status", getStatus())
            .toString();
    }
}
